package com.woniuxy.entity;

/**
 * 图书馆信息表
 */
public class Library {
    int id;
    String name;//图书馆名称
    int userid;//图书馆管理员的用户id
    String synopsis;//图书馆简介

    public Library() {
    }

    public Library(String name, int userid, String synopsis) {
        this.name = name;
        this.userid = userid;
        this.synopsis = synopsis;
    }

    public Library(int id, String name, int userid, String synopsis) {
        this.id = id;
        this.name = name;
        this.userid = userid;
        this.synopsis = synopsis;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }

    @Override
    public String toString() {
        return "Library{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", userid=" + userid +
                ", synopsis='" + synopsis + '\'' +
                '}';
    }
}
